﻿<header class="navbar navbar-static-top bs-docs-nav" id="top">
    <div class="container">
        <div class="navbar-header">
            <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target="#bs-navbar" aria-controls="bs-navbar" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a href="/" class="navbar-brand logo">云校排课</a>
        </div>
        <nav id="bs-navbar" class="collapse navbar-collapse">
           @* <ul class="nav navbar-nav">
                <li>
                    <a href="/m/task/list">常规排课</a>
                </li>
                <li>
                    <a href="/timetable/timetable/list">课表应用</a>
                </li>
                <li>
                    <a href="/tt">课表查询</a>
                </li>
                <li>
                    <a href="/help">使用技巧</a>
                </li>
            </ul>*@
            <ul class="nav navbar-nav navbar-right">
                @{
                    if (ViewBag.currentLoginer != null)
                    {
                    <li class="topbar-right-item">
                        <a href="/ScheduleClass/Index">欢迎您，@ViewBag.currentLoginer.userAccount</a>
                    </li>
                     <li>
                        <a href="/Home/Logout">退出</a>
                    </li>
                    
                    }
                    else
                    {
                    <li><a href="/Home/Login">登录</a></li>
                    <li>
                        <a href="/Home/Register">注册</a>
                    </li>
                    }
                }



            </ul>
        </nav>
    </div>
</header>
